package com.sync.syncmasterdata.product.repository.wms;

import com.sync.syncmasterdata.product.entity.wms.EleProductUnit;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ProductUnitForWmsRepository extends JpaRepository<EleProductUnit,String> {
    @Query(nativeQuery = true,value = "select uGuid1,sCode,sName from Ele_unit where sName=:sName")
    EleProductUnit findUnitName(@Param(value = "sName") String sName);
}
